
//-----------------------------Begin
// import Left from "./components/left.vue";
import * as vueRouter from "vue-router";
const routes = [
  {
    path: '/',
    redirect: '/index'

  },
  {
    path: '/',
    component: () => import('../components/left.vue'),
    children: [
      {
        path: '/index',
        component: () => import('../views/index.vue'),
        meta: {
          title: '系统首页'
        }
      },
      {
        path: '/member',
        component: () => import('../views/member/list.vue'),
        meta: {
          title: '会员列表'
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  }
];

const router = vueRouter.createRouter({
  history: vueRouter.createWebHistory(),
  routes: routes
});
export default router;

//-----------------------------End